package com.panfeng.xcloud.common.core.enums;

public enum CoinTypeEnum {
	USDT("USDT", "USDT"),
	BTC("BTC", "BTC"),
	;

	private String code;
	private String message;

	private CoinTypeEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public static CoinTypeEnum getByValue(String value) {
		for (CoinTypeEnum code : values()) {
			if (code.getCode().equals(value)) {
				return code;
			}
		}
		return null;
	}

}
